package com.will.maze;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class TitleActivity extends Activity{

	Context cxt;
	
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		cxt=this;
		setContentView(R.layout.title);
		
		Button bStart = (Button)findViewById(R.id.button1);
		bStart.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View view) {
				// TODO Auto-generated method stub
				Intent myIntent = new Intent(cxt.getApplicationContext(), MazeActivity.class);
				cxt.startActivity(myIntent);
			}
		});
	}
}
